import Base from 'models/base';

const fields = ['username', 'password'];

export default class Login extends Base {
  username = '';
  password = '';
  isRemember = '';

  constructor() {
    super();
  }

  checkValid() {
    return this.checkRequired(fields);
  }

  getObject() {
    let postData = {};
    this.setPostData(postData, fields);
    return postData;
  }
}
